/**
 * Data model for shipment detail, with status and a list of update events, 
 * which include update time and comment
 * 
 */
package com.cats.model;

import java.util.ArrayList;

public class ShipmentDetailModel {
	private int status = 0; //0-Acceptance, 1-In transit, 2-Delivered
	private ArrayList<ShipmentUpdateModel> updates = null;
	
	public ShipmentDetailModel() {
		setStatus(0);
		setUpdates(new ArrayList<ShipmentUpdateModel>());
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the updates
	 */
	public ArrayList<ShipmentUpdateModel> getUpdates() {
		return updates;
	}

	/**
	 * @param updates the updates to set
	 */
	public void setUpdates(ArrayList<ShipmentUpdateModel> updates) {
		this.updates = updates;
	}
	
	
}
